<%@ page language="java" pageEncoding="utf8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US"
	dir="ltr">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" href="<c:url value="/css/shopadmin.css"/>"
			type="text/css" />
		<link rel="stylesheet"
			href="<c:url value='/scripts/themes/base/jquery.ui.all.css'/>"
			type="text/css" />
	</head>
	<body style="">
		<div id="headBar" class="head_content"></div>
		<div id="main" class="main_content">
			<form class="tableform" action="mt_activity_rule_edit.html"  		id="SelectPromotionRuleForm">
				<input type="hidden" name="marketPromotionActivity.pmtaId" value="${marketPromotionActivity.pmtaId}" />
				<input type="hidden" name="pmtId" value="${pmtId}" />
				<div class="division">
					<table cellspacing="0" cellpadding="0" border="0">
						<tbody>
							<c:forEach var="marketPromotionScheme" items="${marketPromotionSchemes}"
								varStatus="index">
								<tr>
									<th style="width: 10px;">
										<input type="radio" <c:if test="${index.index == 0 }">checked="checked"</c:if>  value="${marketPromotionScheme.pmtsId }"
											name="marketPromotionScheme.pmtsId"   />
									</th>
									<td>
										<label for="pmts_id_n_1">
											促销活动规则--${marketPromotionScheme.pmtsName }
										</label>
									</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
					<div class="table-action">
						<button class="btn" type="submit">
							<span><span>下一步</span> </span>
						</button>
						<button class="btn" type="button">
							<span><span>取消</span> </span>
						</button>
					</div>
				</div>
			</form>
		</div>
		<div id="footBar" class="foot_content"></div>
		<script type="text/javascript"
			src="<c:url value='/scripts/jquery-1.4.2.js'/>"></script>

		<%@ include file="/jsp/admin/common/messages.jsp"%>
		<c:if test="${not empty pmtsId}">
		<script type="text/javascript">	
		var pmtsId = ${pmtsId};		
		$('input[type=radio]').each(function(i, dom) {
			if ($(dom).attr("value")==pmtsId) {
				$(dom).attr("checked", true);
			}else{
				$(dom).attr("checked", false);
			}
		});
		</script>
		</c:if>
	</body>
</html>